import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
    { path: "/", redirect: { name: "Home" },},
    { path: "/home", name: "Home", component: () => import('@/view/Login.vue') },
    { path: "/chat", name: "Chat", component: () => import('@/view/UserChat.vue') },
  ];
  
  const router = createRouter({
    history: createWebHashHistory(),
    routes,
  });
  
  export default router;